/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calsealumne;



/**
 *
 * @author silverhand
 */
public class Alumne {

    private int curs;

    /**
     * Get the value of curs
     *
     * @return the value of curs
     */
    public int getCurs() {
        return curs;
    }

    /**
     * Set the value of curs
     *
     * @param curs new value of curs
     */
    public void setCurs(int curs) {
        this.curs = curs;
    }
    private String linia;

    /**
     * Get the value of linia
     *
     * @return the value of linia
     */
    public String getLinia() {
        return linia;
    }

    /**
     * Set the value of linia
     *
     * @param linia new value of linia
     */
    public void setLinia(String linia) {
        this.linia = linia;
    }


    public Alumne() {
        this.setCurs(2009);
    }

    public Alumne(int any,int dia) {
        String aux="";
        this.setCurs(any);

        switch (dia) {
            case 1: aux="BATX";
            case 2: aux="ESO";
            case 3: aux="CFGS";
            default: aux="No hi hà";
        }

        
        this.setLinia(aux);
    }


}
